package com.cskaoyan.service.goods;

import com.cskaoyan.model.bean.Comment;
import com.cskaoyan.model.bean.Goods;
import com.cskaoyan.model.bean.Storage;
import com.cskaoyan.model.bo.goods.GoodsAddBo;
import com.cskaoyan.model.bo.goods.GoodsUpdateBo;
import com.cskaoyan.model.vo.BaseRespVo;
import com.cskaoyan.model.vo.goods.*;
import org.springframework.web.multipart.MultipartFile;

public interface GoodsService {

        GoodsVo list(Integer page, Integer limit, String sort, String order);

        GoodsVo goodsSearch(Integer page, Integer limit, String goodsSn, String name, String sort, String order);

        CatAndBrandVo catAndBrandSelect();

//        public StorageVO goodsAdd(Storage storage);

        void goodsAdd(GoodsAddBo goodsAddBo);

        DetailVo detail(Integer id);

        void goodsUpdate(GoodsUpdateBo goodsUpdateBo);

        int goodsDelete(Goods goods);

        CommentVo commentList(Integer page, Integer limit, String sort, String order);

        int commentDel(Comment comment);
}
